/*
 * @Author: Hzl
 * @Date: 2021-10-26 15:12:50
 * @LastEditors: Hzl
 * @LastEditTime: 2021-10-30 16:19:42
 * @Description: 
 */
import { get,post } from '@/utils/request'

//封装查询所有资讯分类
export function findAll(){
    return get('/category/findAll')
}
//封装更新和保存请求
export function saveOrUpdate(data){
    return post('/category/saveOrUpdate',data)
}
//封装通过id删除资讯分类
export function deleteById(data){
    return get('/category/deleteById',data)
}

//资讯信息页面相关接口--学生风采相关接口
//封装分页多条件获取资讯
export function pageQueryArticles(data){
    return get('/article/pageQuery',data)
}
//封装通过id删除资讯信息/风采
export function deleteByIdPro(data){
    return get('/article/deleteById',data)
}
//封装修改资讯信息状态/风采状态
export function changeStatus(data){
    return post('/article/changeStatus',data)
}
//封装保存或更新资讯信息
export function saveOrUpdatePro(data){
    return post('/article/saveOrUpdate',data)
}